<?php

	require('includes/connect.php');

	$gender = $_POST['gender'];

	$date = $_POST['dd']."-".$_POST['mm']."-".$_POST['yy'];

//	$mobNo = $_POST['stdCode']."-".$_POST['phNo'];
	//`mobNo` = '$mobNo',

	echo $location = $_POST['location'];

	$user_id = $_POST['user_id'];

	/*echo $gender;
		echo $date;
			echo $mobNo;
				echo $location;
					echo $user_id;*/

	$qry = mysql_query("update users set `gender` = '$gender', `birthdate` = '$date', `location` = '$location' where user_id=".$user_id);

	if(!$qry)
	{
		mysql_error();
	}
	else
	{
	//header('location:settings.php');
	}




?>